# -*- coding: utf-8 -*-
import collections
h = {
    "t1" : {
        "kr" : "바나나",
        "en" : "banana",
    },
    "t2" : {
        "kr" : "사과",
        "en" : "apple",
    },
    "t3" : {
        "kr" : "오렌지",
        "en" : "orange",
        "item" : {
            "i1" : "귤",
            "i2" : "낑깡",
            "i3" : "한라봉",
        },
    },
    "t4" : {
        "kr" : "포도",
        "en" : "graph",
    },
    "t5" : {
        "kr" : "수박",
        "en" : "watermelon",
        "item" : {
        },
    },
}
oh = collections.OrderedDict(h.items())
for k, v in oh.items():
    #print(k,v)
    print("{} {} {}".format(k,v['kr'],v['en']))
    if "item" in v:
        for kk,vv in v['item'].items():
            print("\t\t{s1} {s2}".format(s1=kk,s2=vv))
    elif "포도" in v.values():
        print("\t\t 와인을 만들자")







    #c = "with %(kwarg)s!"%{'kwarg':sub2}

    #print('%{s1}, %{s2}, %{s3}') % {'s1':int(k),'s2':v["kr"],'s3':v["en"]}
    #print(test["item1"])
    #print(test.get("item3"))
#test["new"]="dictionary"